
const KEY = 'VUE-HR-3'

// 获取token
export function getToken() {
  return localStorage.getItem(KEY)
}

// 设置token 参数
export function setToken(token) {
  return localStorage.setItem(KEY, token)
}

// 删除 token
export function delToken() {
  return localStorage.removeItem(KEY)
}

const timeKey = 'balbal'
// 设置时间戳
export const setTime = () => {
  return localStorage.setItem(timeKey, Date.now())
}
// 获取时间戳
export const getTime = () => {
  return localStorage.getItem(timeKey)
}
